<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "commission_log".
 *
 * @property int $id
 * @property int $recommend_id
 * @property int $recommend_commission
 * @property int $commission_status 0 待发放  1 已发放
 * @property int $update_time
 * @property int $create_time
 */
class CommissionLog extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'commission_log';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['recommend_id', 'recommend_commission', 'commission_status', 'update_time', 'create_time'], 'required'],
            [['recommend_id', 'recommend_commission', 'commission_status', 'update_time', 'create_time'], 'integer'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'recommend_id' => 'Recommend ID',
            'recommend_commission' => 'Recommend Commission',
            'commission_status' => 'Commission Status',
            'update_time' => 'Update Time',
            'create_time' => 'Create Time',
        ];
    }
}
